package com.hziee.graduate.ticket.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

@EqualsAndHashCode(callSuper = true)
@TableName("t_cinema")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Cinema extends Model<Cinema> {

    @TableId(type = IdType.AUTO)
    private Long cinemaId;
    //电影名称
    private String cinemaName;
    //地点
    private Integer regionId;
    //创建人
    private Long createPerson;
    //时间
    private LocalDateTime createTime;
    // 详细地址
    private String cinemaAddress;

    private Long selfId;

    private Integer delFlag;
    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.cinemaId;
    }
}

